$(function(){
	
	$("#selectInventory").click(function(){
	
		
		var productid2= document.getElementById("productid1").value;
		var productname2= document.getElementById("productname1").value;
		console.log(productid1);
		console.log(productname2);
		if(productid1==""|productname2==""){
			
			alert("查询不能为空！");
			
		}else{
			
		$("#showInventory").load(path+"/productServlet",{
			method:'selectInventory',
			productid2:productid2,
			productname2:productname2
		});
		}
	})
	
	
})